add_rules("mode.debug", "mode.release")

-- 还得写pc支持pkg 
option("demo")
    set_default(true)
    set_showmenu(true)
option("demo_path")
    set_showmenu(true)

includes("src/xmake.lua")

if has_config("demo") and has_config("demo_path") then
    target("main")
        add_deps("lbmath")
        set_kind("binary")
        set_targetdir("bin")
        add_files("$(demo_path)/*.cpp","$(demo_path)/*.c")

        
        add_includedirs("include","$(demo_path)","$(demo_path)/include")
        add_linkdirs("temp_libs")
        add_cflags("-O3")
end
